﻿using System;
using System.Runtime.Serialization;
using System.ServiceModel;
using Sripirom.ATS.Core.Messaging;

namespace Sripirom.ATS.Services.API.Inquiry.Messages
{
    [MessageContract(WrapperNamespace = "http://www.kiatnakinbank.com/services/ATS/IInquiryService/InquiryDecision/RequestMessage")]
    public class InquiryDecisionRequest : ChannelRequest, IChannelRequest
    {
        private InquiryDecitionBodyRequest _body;
        public InquiryDecisionRequest()
        {
            _body = new InquiryDecitionBodyRequest();
        }

        [MessageBodyMember(Name = "Body", Namespace = "http://www.kiatnakinbank.com/services/ATS/IInquiryService/InquiryDecision/RequestMessage/Body")]
        public InquiryDecitionBodyRequest Body { get { return _body; } set { _body = value; } }
    }

    [DataContract(Name="Body", Namespace = "http://www.kiatnakinbank.com/services/ATS/IInquiryService/InquiryDecision/RequestMessage/Body")]
    public class InquiryDecitionBodyRequest
    {
        //[IgnoreDataMember]
        [DataMember(Order = 1)]
        public String EffectiveDate { get; set; }

        [DataMember(Order = 2, IsRequired = true)]
        public Decimal TransAmount { get; set; }                           

        [DataMember(Order = 3)]
        public Decimal? TransAmountAccum { get; set; }

        [DataMember(Order = 4)]
        public Decimal? TransCountAccum { get; set; }

        [DataMember(Order = 5)]
        public String TransferType { get; set; }

        [DataMember(Order = 6)]
        public String CompanyCode { get; set; }

        [DataMember(Order = 7)]
        public String ServiceCode { get; set; }

        [DataMember(Order = 8)]
        public String SubServiceCode { get; set; }

  
    }


}
